import 'package:flutter/material.dart';
//import 'package:flutter_learn_demo/localreferesh2/timemodel2.dart';
//import 'package:provider/provider.dart';

class LocalRefreshTest2 extends StatefulWidget {

  const LocalRefreshTest2({super.key});

  @override
  State<StatefulWidget> createState() => LocalRefreshTestState();

}

class LocalRefreshTestState extends State<LocalRefreshTest2> {

  @override
  Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: const Text('LocalRefresh'),
          backgroundColor: Colors.lightBlueAccent,
        ),

        // body: Center(
        //   child: ChangeNotifierProvider<TimeModel2>(
        //       create: (context) => TimeModel2(),
        //       child: Consumer<TimeModel2>(builder: (context, timerModel, _) {
        //         return ElevatedButton(
        //           onPressed: () {
        //             timerModel.setCount();
        //           },
        //           child: Text(
        //             '这是第${timerModel.count}次点击',
        //              style: const TextStyle(color: Colors.blue, fontSize: 15),
        //           ),
        //         );
        //        }
        //      ),
        //   ),
        // ),

        body: Container(
           margin: const EdgeInsets.only(left: 20,top: 20),
           width: 100,
           height: 30,
           color: Colors.lightBlueAccent,
        ),

      );
  }
}